<?php

namespace app\common\validate;

class OrderServiceValidate extends BaseValidate
{
    /**
     * 验证规则
     */
    protected $field = [
        'order_service_id' => '',
        'service_no'       => '售后单号(流水号)',
        'order_no'         => '订单号',
        'order_goods_id'   => '对应order_goods表',
        'user_id'          => '对应user表',
        'admin_id'         => '对应admin表',
        'qty'              => '数量',
        'type'             => '0=仅退款',
        'reason'           => '原因',
        'description'      => '说明',
        'goods_status'     => '货物状态',
        'image'            => '凭证(照片)',
        'status'           => '0=待处理',
        'is_return'        => '寄回到商家',
        'result'           => '处理结果',
        'remark'           => '客服备注',
        'refund_fee'       => '退款金额',
        'refund_detail'    => '退款结构',
        'refund_no'        => '退款单号',
        'address'          => '返件地址',
        'consignee'        => '委托人',
        'zipcode'          => '邮编',
        'mobile'           => '手机号码',
        'logistic_code'    => '快递单号',
        'delivery_fee'     => '运费',
        'admin_event'      => '是否有新事件',
        'user_event'       => '是否有新事件',
        'create_time'      => '创建日期',
        'update_time'      => '更新日期',

    ];

    /**
     * 验证场景
     */
    protected $scene = [
        'update' => [],
        'save'   => [
            'order_no'         => 'require',
            'user_id'          => 'require',
            'type'             => 'require',
            'reason'           => 'require',
            'description',
            'goods_status'     => 'require',
            'image',
            'refund_fee'       => 'require',
            'logistic_code',
            'logistic_company',

        ],
    ];

    /**
     * 提示消息
     */
    protected $message = [

    ];


}
